 package net.go176.backpack.gui;
 
 import org.bukkit.Bukkit;
 import org.bukkit.inventory.Inventory;
 import org.bukkit.inventory.InventoryHolder;
 
 public class MyInvHolder
   implements InventoryHolder {
   public final InventoryType invType;
   public final Inventory inv;
   
   public MyInvHolder(InventoryType invType, String title) {
     if (title.length() > 32)
       title = String.valueOf(title.substring(0, 29)) + "..."; 
     this.invType = invType;
     switch (invType) {
       case Inventory:
         this.inv = Bukkit.getServer().createInventory(this, 45, title);
         return;
       case EnderChest:
        this.inv = Bukkit.getServer().createInventory(this, 27, title);
         return;
       case null:
       case Baubles_Inventory:
         this.inv = Bukkit.getServer().createInventory(this, 9, title);
         return;
     } 
    this.inv = Bukkit.getServer().createInventory(this, 0, title);
   }
 
 
   
   public Inventory getInventory() {
     return this.inv;
   }
 }


/* Location:              D:\User\Xuan\Downloads\MyBackpack1.2.5.jar!\net\saralab\mybackpack\gui\MyInvHolder.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.1.3
 */